.inputrc settings: delete-char and [] keybindings not working

Posted by tanascius on Super User See other posts from Super User or by tanascius
Published on 2010-01-08T15:14:52Z Indexed on 2010/03/18 2:01 UTC
Read the original article Hit count: 494

Filed under:
|
|
|
|

Hello,

I am using mingw under windows. When I am using ruby (irb) my 'special' characters like []{} and \ are not working. This is because of my german keyboard, where these keys are used together with AltGr (Alt + Ctrl). I found a solution for this here or here.

Now, when I add the line

"\M-[": "["

to my .inputrc file the delete-key no longer works. It is defined as usual:

"\e[3~": delete-char

Pressing delete just returns [3, while Ctrl + v, delete returns ^[[3~ as expected.

Somehow these two definitions in .inputrc do not work together. Any ideas?

EDIT:
It is only the delete key that is not working, my other bindings all work, like:

"\e[1~": beginning-of-line              # home (ok)
"\e[2~": paste-from-clipboard           # insert (ok)
"\e[3~": delete-char                    # delete (PROBLEM)
"\e[4~": end-of-line                    # end (ok)
"\e[5~": history-search-backward        # pageup (ok)
"\e[6~": history-search-forward         # pagedown (ok)

© Super User or respective owner

Related posts about ruby

Related posts about bash